import request from '@/utils/request'
export function selectAll() {
    return request({
        url: window.CONFIG.workOrderRestIp + '/user/selectAll',
        method: 'get'
    })
}

export function selectUser(id) {
    return request({
        url: window.CONFIG.workOrderRestIp + '/user/selectUserInfoById?id=' + id,
        method: 'get',
    })
}

// 更新工单数据中的唯一标识
export function updateCustomIdentify(params) {
    return request({
        url: window.CONFIG.workOrderRestIp + '/WorkOrder/updateCustomIdentify',
        method: 'post',
        data: params
    })
}
// 根据部门id获取用户
export  function  getUseListByDepartmentId(params)  {    
    return  request({
        url:  window.CONFIG.workOrderRestIp +  '/user/getUseListByDepartmentId',
                method:   'post',
                data:  params    
    })
}